// 导入request
import request from '@/utils/request'

// 创建获取列表请求
export const articleListAPI = (data) => {
  return request.get('/admin/interview/query', {
    params: data
  })
}
// 添加面经请求
export const createArticleAPI = (data) => {
  return request.post('/admin/interview/create', data)
}
// 删除面经请求
export const removeArticleAPI = (id) => {
  return request({
    method: 'DELETE',
    url: '/admin/interview/remove',
    data: {
      id
    }
  })
}

// 获取单个面经详情
export const getArticleDetail = (id) => {
  return request.get('/admin/interview/show', {
    params: {
      id
    }
  })
}
// 单个面经修改
export const updataArticleAPI = (data) => {
  return request.put('/admin/interview/update', data)
}
